#!/bin/bash
PRONAME=data_push_ad_log
echo $PRONAME

ProInfo=`ps -ef|grep $PRONAME|grep -v grep`

ProInfoArray=($ProInfo)

ProNum=${ProInfoArray[1]}

echo "kill -9 "$ProNum
kill -9  $ProNum

sleep 1
ProInfoEnd=`ps -ef|grep $PRONAME|grep -v grep|wc -l`

if [ $ProInfoEnd -le 0 ];then
      echo "stop "$PRONAME "success!"
else
      echo "stop "$PRONAME "fail!"
fi
